import { resolveAddressPromise } from '../../utils/address'

Page({
    data: {
        list: ['深圳市', '北京市', '上海市', '广州市']
    },

    onSelect(e) {
        const { name } = e.target.dataset
        console.log('=== name', name)

        // 完成 addressPromise
        resolveAddressPromise(name)

        wx.navigateBack()
    }
})